package org.example.controller;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@CrossOrigin(origins = "*",maxAge = 3600)
@RequestMapping("homework")
public class HomeworkController {

    /*
    作业提交
     */
    @RequestMapping(value = "send",method = RequestMethod.GET)
    public String sendHomework() {
        return null;
    }

    /*
    作业发布
     */
    @RequestMapping(value = "add",method = RequestMethod.GET)
    public String addHomework(@RequestParam Map<String,String> params){

        return null;
    }

    /*
    作业状态改变
     */
    @RequestMapping(value = "state",method = RequestMethod.GET)
    public String updateState(){
        return null;
    }

    /*
    作业查询
     */
    @RequestMapping(value = "find",method = RequestMethod.GET)
    public String findHomework(){
        return null;
    }

    /*
    作业分发
     */
    @RequestMapping(value = "test",method = RequestMethod.GET)
    public String testHomework(){
        return null;
    }

    /*
    作业待评获取
     */
    @RequestMapping(value = "needeva",method = RequestMethod.GET)
    public String needeva(){
        return null;
    }

    /*
    作业上分
     */
    @RequestMapping(value = "givescore",method = RequestMethod.GET)
    public String givescore(){
        return null;
    }

}
